package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 中药材标准库库对象 medicine_standard
 * 
 * @author ruoyi
 * @date 2025-01-23
 */
public class MedicineStandard extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 标准号 */
    @Excel(name = "标准号")
    private String code;

    /** 标准类型 */
    @Excel(name = "标准类型")
    private String type;

    /** 标准名称 */
    @Excel(name = "标准名称")
    private String name;

    /** 领域 */
    @Excel(name = "领域")
    private String area;

    /** 0：现行，1：废止 */
    @Excel(name = "0：现行，1：废止")
    private Integer status;

    /** 实施日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "实施日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date enforceTime;

    /** 适用对象 */
    @Excel(name = "适用对象")
    private String suitableObject;

    /** 适用范围 */
    @Excel(name = "适用范围")
    private String suitableRange;

    /** 起草单位 */
    @Excel(name = "起草单位")
    private String draftingUnit;

    /** 附件 */
    @Excel(name = "附件")
    private String files;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setCode(String code) 
    {
        this.code = code;
    }

    public String getCode() 
    {
        return code;
    }
    public void setType(String type) 
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setArea(String area) 
    {
        this.area = area;
    }

    public String getArea() 
    {
        return area;
    }
    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }
    public void setEnforceTime(Date enforceTime) 
    {
        this.enforceTime = enforceTime;
    }

    public Date getEnforceTime() 
    {
        return enforceTime;
    }
    public void setSuitableObject(String suitableObject) 
    {
        this.suitableObject = suitableObject;
    }

    public String getSuitableObject() 
    {
        return suitableObject;
    }
    public void setSuitableRange(String suitableRange) 
    {
        this.suitableRange = suitableRange;
    }

    public String getSuitableRange() 
    {
        return suitableRange;
    }
    public void setDraftingUnit(String draftingUnit) 
    {
        this.draftingUnit = draftingUnit;
    }

    public String getDraftingUnit() 
    {
        return draftingUnit;
    }
    public void setFiles(String files) 
    {
        this.files = files;
    }

    public String getFiles() 
    {
        return files;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("code", getCode())
            .append("type", getType())
            .append("name", getName())
            .append("area", getArea())
            .append("status", getStatus())
            .append("enforceTime", getEnforceTime())
            .append("suitableObject", getSuitableObject())
            .append("suitableRange", getSuitableRange())
            .append("draftingUnit", getDraftingUnit())
            .append("files", getFiles())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
